<div class="modal fade" id="modal-addMask" style="">
    <div class="modal-dialog">
        <form action="{{url('user/work/addTask')}}" method="post" onsubmit="return check();" enctype="multipart/form-data">
            {{ csrf_field() }}
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span></button>
                    <h3 class="modal-title" style="text-align: center">新增任务</h3>
                </div>
                <div class="modal-body">
                    <div class="row" style="margin-top: 2%">
                        <div class="col-lg-8 col-md-8 col-sm-12 col-xs-12 col-lg-offset-2 col-md-offset-2">
                            <select class="form-control" style="border-radius: 5px" id="first_type" name="first_type" onchange="getType($(this));">
                                <option value="-1">业务类型</option>
                                @foreach($type as $k =>$v)
                                    <option value={{$v['id']}}>{{$v['name']}}</option>
                                @endforeach
                            </select>
                        </div>
                    </div>
                    <div class="row" style="margin-top: 2%">
                        <div class="col-lg-8 col-md-8 col-sm-12 col-xs-12 col-lg-offset-2 col-md-offset-2">
                            <select class="form-control" style="border-radius: 5px" id="second_type" name="second_type">
                                <option value="-1">详细类型</option>
                            </select>
                        </div>
                    </div>
                    <div class="row" style="margin-top: 2%">
                        <div class="col-lg-8 col-md-8 col-sm-12 col-xs-12 col-lg-offset-2 col-md-offset-2">
                            <input type="text" class="form-control" placeholder="申请人" id="apply_person" name="apply_person" style="border-radius: 5px" >
                        </div>
                    </div>
                    <div class="row" style="margin-top: 2%">
                        <div class="col-lg-8 col-md-8 col-sm-12 col-xs-12 col-lg-offset-2 col-md-offset-2">
                            <input type="text" class="form-control" placeholder="公司" id="apply_company" name="apply_company" style="border-radius: 5px" >
                        </div>
                    </div>
                    <div class="row" style="margin-top: 2%">
                        <div class="col-lg-8 col-md-8 col-sm-12 col-xs-12 col-lg-offset-2 col-md-offset-2">
                            <input type="text" class="form-control" placeholder="联系电话" id="apply_phone" name="apply_phone" style="border-radius: 5px" required>
                        </div>
                    </div>
                    <div class="row" style="margin-top: 2%">
                        <div class="col-lg-8 col-md-8 col-sm-12 col-xs-12 col-lg-offset-2 col-md-offset-2">
                            <select class="form-control" style="border-radius: 5px" id="business_" name="business_">
                                <option value="-1">业务员(可不选)</option>
                            </select>
                        </div>
                    </div>
                    <div class="row" style="margin-top: 2%">
                        <div class="col-lg-8 col-md-8 col-sm-12 col-xs-12 col-lg-offset-2 col-md-offset-2">
                            <select class="form-control" style="border-radius: 5px" id="mask_grade" name="mask_grade">
                                <option value="-1">任务等级</option>
                                @foreach(config('config.product_level') as $k=>$v)
                                    <option value={{$k}}>{{$v}}</option>
                                    @endforeach
                            </select>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <div class="row">
                        <div class="col-lg-8 col-md-8 col-lg-offset-2 col-md-offset-2 ">
                            <button type="submit" class="btn btn-primary" style="background-color: #0080ff;border: #0080ff;width: 100%">确定
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>

